package archer.application.core.api.internal.system;

import archer.application.core.service.BaseService;
import archer.application.core.service.system.SuspiciousService;
import archer.framework.protocol.result.ExecuteResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author christ
 * @date 2016/9/13
 */
@RestController
@RequestMapping("/api/v*/internal/system/suspicious")
public class SuspiciousApi extends BaseService {

    @Autowired
    SuspiciousService suspiciousService;

    @RequestMapping("findPagedList")
    public ExecuteResult findPagedList(String queryCondition) {

        return suspiciousService.findPagedList(asCondition(queryCondition));
    }
}
